package com.urea.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.urea.system.mapper.CustomerAccountDetailMapper;
import com.urea.system.domain.CustomerAccountDetail;
import com.urea.system.service.ICustomerAccountDetailService;

/**
 * 账户流水Service业务层处理
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@Service
public class CustomerAccountDetailServiceImpl extends ServiceImpl<CustomerAccountDetailMapper, CustomerAccountDetail> implements ICustomerAccountDetailService
{
    @Autowired
    private CustomerAccountDetailMapper customerAccountDetailMapper;

    /**
     * 查询账户流水
     * 
     * @param id 账户流水主键
     * @return 账户流水
     */
    @Override
    public CustomerAccountDetail selectCustomerAccountDetailById(Long id)
    {
        return customerAccountDetailMapper.selectCustomerAccountDetailById(id);
    }

    /**
     * 查询账户流水列表
     * 
     * @param customerAccountDetail 账户流水
     * @return 账户流水
     */
    @Override
    public List<CustomerAccountDetail> selectCustomerAccountDetailList(CustomerAccountDetail customerAccountDetail)
    {
        return customerAccountDetailMapper.selectCustomerAccountDetailList(customerAccountDetail);
    }

    /**
     * 新增账户流水
     * 
     * @param customerAccountDetail 账户流水
     * @return 结果
     */
    @Override
    public int insertCustomerAccountDetail(CustomerAccountDetail customerAccountDetail)
    {
        return customerAccountDetailMapper.insertCustomerAccountDetail(customerAccountDetail);
    }

    /**
     * 修改账户流水
     * 
     * @param customerAccountDetail 账户流水
     * @return 结果
     */
    @Override
    public int updateCustomerAccountDetail(CustomerAccountDetail customerAccountDetail)
    {
        return customerAccountDetailMapper.updateCustomerAccountDetail(customerAccountDetail);
    }

    /**
     * 批量删除账户流水
     * 
     * @param ids 需要删除的账户流水主键
     * @return 结果
     */
    @Override
    public int deleteCustomerAccountDetailByIds(Long[] ids)
    {
        return customerAccountDetailMapper.deleteCustomerAccountDetailByIds(ids);
    }

    /**
     * 删除账户流水信息
     * 
     * @param id 账户流水主键
     * @return 结果
     */
    @Override
    public int deleteCustomerAccountDetailById(Long id)
    {
        return customerAccountDetailMapper.deleteCustomerAccountDetailById(id);
    }
}
